package cn.edu.hyit.hjq.volunteems.backend.mapper;

import cn.edu.hyit.hjq.volunteems.backend.pojo.PointRecord;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PointRecordMapper {
    List<PointRecord> findByUserId(@Param("userId") String userId);
    List<PointRecord> findByActivityId(@Param("activityId") Long activityId);
    PointRecord findById(Long id);
    Integer sumPointsByVolunteerId(@Param("volunteerId") String volunteerId);
    void save(PointRecord pointRecord);
    void update(PointRecord pointRecord);
    void deleteById(Long id);
}
